package com.it;

public class EnumDemoText {
    public static void main(String[] args) {
        EnumDemo[] enumDemos = EnumDemo.values();//获取所有枚举对象
        for (int i = 0; i < enumDemos.length; i++) {
            System.out.println(enumDemos[i]);
        }
    }
}
